<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width,initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv=X-UA-Compatible content="IE=edge,chrome=1">
    <meta content=always name=referrer>
    <link rel="stylesheet" type="text/css" href="__STATIC__/css/style.css">
    <script src="__STATIC__/js/jquery-1.8.2.js"></script>
    <title>我的店铺</title>
    <style>
        #wall_1{
            top: 40%;
            left: 41%;
            width:15%;
            border: 3px solid white;
            border-radius: 100%;
            position:absolute;
        }
    </style>
    <script>
        $(document).ready(function () {
            setInterval("time_check_msg()",3000);
            var wall_1 = document.getElementById('wall_1');
            wall_1.style.height=wall_1.offsetWidth-6+'px';
            var wall_0 = document.getElementById('wall_0');
            wall_0.style.height=wall_0.offsetWidth*0.2+'px';
        })
    </script>
</head>
<body>
<div class="wrap-shop">
    <div class="header">
        <p>我的店铺</p>
        <img src="__STATIC__/img/back.png" onclick =window.location.href="{:url('mobile/shop_auth/createShop')}"; class="back">
        <img src="__STATIC__/img/set.png" onclick=location.href="{:url('mobile/shop_set/index')}"; class="set1">
    </div>
    <div class="center">
        <div class="info">
            <img src="/{$info.banner}" class="pic1" id="wall_0">
            <img src="/{$info.logo}" class="pic2" id="wall_1">
        </div>
        <div class="name">
            <p>- {$info.title} -</p>
        </div>
        <ul class="list">
            <li class="num"><a href="#"><span>&yen;{$total}</span><br><span>今日成交总额</span></a></li>
            <li class="divide">|</li>
            <li class="num"><a href="#"><span>{$count}</span><br><span>今日订单数</span></a></li>
            <li class="divide">|</li>
            <li class="num"><a href="#"><span>0</span><br><span>今日访客</span></a></li>
        </ul>
        <ul class="menu">
            <li><a href="{:url('mobile/shop_auth/shopInfo')}"><img src="__STATIC__/img/wddp-dianpu.png"><br><span>店铺信息</span></a></li>
            <li><a href="{:url('mobile/shop_auth/goodsManage')}?show=sale"><img src="__STATIC__/img/wddp-shangpin.png"><br><span>商品管理</span></a></li>
            <li><a href="{:url('mobile/shop_auth/orderManage')}?type=-1"><img src="__STATIC__/img/wddp-dingdan.png"><br><span>订单管理</span></a></li>
            <li><a href="{:url('mobile/shop_auth/evaluateManage')}"><img src="__STATIC__/img/wddp-pingjia.png" id="evaluate"><br><span>评价管理</span></a></li>
        </ul>
    </div>
</div>
<script>
    //检测是否有新消息
    function time_check_msg(){
        $.ajax({
            url:"{:url('mobile/shop_auth/check_msg')}",
            dataType:'json',
            type:'post',
            success:function (t) {
                if (t.code == 200){
                    $('#evaluate').prop('src','__STATIC__/img/wddp-pingjia_1.png')
                }else{
                    $('#evaluate').prop('src','__STATIC__/img/wddp-pingjia.png')
                }
            }
        })
    }
</script>
</body>
</html>